<template>
  <div>
    <h1>首页</h1>
    <nuxt-link
      :to="{
        name: 'index-id',
        params: { id: 3 },
        query: { a: 1, b: 2 },
      }"
    >
      动态路由
    </nuxt-link>
    <nuxt-link
      :to="{
        name: 'index-hot',
        params: { id: 3 },
        query: { a: 1, b: 2 },
      }"
    >
      最热
    </nuxt-link>
 <!--    <nuxt-link
      :to="{
        name: '/',
        params: { id: 3 },
        query: { a: 1, b: 2 },
      }"
    >
      最新
    </nuxt-link> -->

    <div class="container">
      <div class="bfc"></div>
  
    </div>
    <div class="container">
      <div class="bfc"></div>
    </div>
    <nuxt />
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: ["/index/new"],
    };
  },
  created() {
    // console.log(this.$route);
  },
};
</script>

<style>
.bfc {
  background-color: #f00;
  height: 100px;
  width: 100px;
  margin: 50px;
  /* overflow: hidden;d */
  /* display: flex; */
}
.bfc:nth-child(1) {
}

.container{
  /* overflow: hidden; */

}
/* .container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
} */

.title {
  font-family: "Quicksand", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>
